package com.atguigu.gulimall.member.feign;

import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("gulimall-coupon") /*告诉spring cloud 这个是远程调用客户端*/
public interface CouponFeignService {

    @RequestMapping("/coupon/coupon/member/list")
    public R memberCoupon(); //在注册中心中找服务名为gulimall-coupon的服务 再去请求/coupon/coupon/member/list对应的方法
}
